package com.abcd.thread.base;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @program: TestMaven
 * @description: 测试
 * @author: Liu Xinpeng
 * @create: 2021-05-18 17:25
 **/
public class ThreadTest {
    public static void main(String[] args) {

        // 继承Thread
        MyThreadA myThreadA = new MyThreadA();
        myThreadA.start();
        // 实现Runnable接口
        MyThreadB myThreadB = new MyThreadB();
        Thread thread = new Thread(myThreadB);
        thread.start();


        LockObject.point();
        LockObject.pointElse();
        if (2 ==3 | 1 == 1) {
            System.out.println("12314124");
        }

        String a = "42000014422022062732475472131010868673";
        System.out.println(a.length());

        List<Object> list = new ArrayList<>();
        List<Object> collect = list.stream().filter(o -> {
            return Boolean.parseBoolean(null);
        }).collect(Collectors.toList());
    }
}